package com.example.ShoppingManagementSystem.repository;

import com.example.ShoppingManagementSystem.entity.PurchaseHistory;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PurchaseHistoryRepository extends JpaRepository<PurchaseHistory,Integer>{
    List<PurchaseHistory> findAllByUserID(int userID);
}
